﻿using System.Windows;
using System.Windows.Controls;

namespace ClientWPF
{
    /// <summary>
    /// Interaction logic for PrintingWindow.xaml
    /// </summary>
    public partial class PrintingWindow
    {
        public PrintingWindow()
        {
            InitializeComponent();
        }

        private void ButtonPrint_Click(object sender, RoutedEventArgs e)
        {
            var printDialog = new PrintDialog();
            if (printDialog.ShowDialog() == true)
            {
                printDialog.PrintVisual(layoutControlPaymnetOrder, "Payment order printing");
            }
        }

        private void ButtonCancel_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}